package com.xk.springboot.controller;


import com.xk.springboot.dto.ResponseData;
import com.xk.springboot.dto.ResultData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/10
 */
@RestController
@RequestMapping("/exception")
public class ExceptionController {



    @GetMapping("/index")
    public ResultData index(){

        // 制造一个异常
        int i = 1/0;

        return ResponseData.success("");
    }



}
